#include "StdAfx.h"
#include "Elapse.h"

CElapse::CElapse(void)
{
	m_dwTickCount = ID_NONE;
}

CElapse::~CElapse(void)
{
}

void CElapse::Reset(void)
{
	m_dwTickCount = GetTickCount();
}

DWORD CElapse::GetElapseSecond(void)
{
	if (ID_NONE == m_dwTickCount)
	{
		return ID_NONE;
	}
	return (GetTickCount() - m_dwTickCount) % 1000;
}
